import request from '@/utils/request'

// 查询咨询分类列表
export function listMallNewsClass(query) {
  return request({
    url: '/mall/mallNewsClass/list',
    method: 'get',
    params: query
  })
}

// 查询咨询分类详细
export function getMallNewsClass(id) {
  return request({
    url: '/mall/mallNewsClass/' + id,
    method: 'get'
  })
}

// 新增咨询分类
export function addMallNewsClass(data) {
  return request({
    url: '/mall/mallNewsClass',
    method: 'post',
    data: data
  })
}

// 修改咨询分类
export function updateMallNewsClass(data) {
  return request({
    url: '/mall/mallNewsClass',
    method: 'put',
    data: data
  })
}

// 删除咨询分类
export function delMallNewsClass(id) {
  return request({
    url: '/mall/mallNewsClass/' + id,
    method: 'delete'
  })
}

// 导出咨询分类
export function exportMallNewsClass(query) {
  return request({
    url: '/mall/mallNewsClass/export',
    method: 'get',
    params: query
  })
}